<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="css/personal.css">
    <link rel="stylesheet" href="css/iconfont.css">
    <script>
        function resize() {
				var h = document.body.clientWidth;
				console.log(h);
				var banner = document.getElementById("container");
				banner.setAttribute('style', 'width:' + h + "px");
        }
    </script>
</head>

<body  onload="resize()">
    <div class="web" id="container">
        <!-- 头部s -->
        <header>
            <div class="logo fl"><img src="images/logo.png" alt=""></div>
            <div class="nav fr">
                <ul>
                    <li class="fl"><a href="./index.html">
                            <p>首页</p><span>Home</span>
                        </a></li>
                    <li class="fl"><a href="./personal.html">
                            <p>个人中心</p><span>Personal center</span>
                        </a></li>    
                    <li class="fl"><a href="">
                            <p>游戏</p><span>Game</span>
                        </a></li>
                    <li class="fl"><a href="">
                            <p>案例</p><span>Case</span>
                        </a></li>
                    <li class="fl"><a href="">
                            <p>关于我们</p><span>About us</span>
                        </a></li>
                    <li class="fl"><i class="iconfont icon-weixinfang"></i></li>
                </ul>
            </div>
        </header>
        <div class="tip">
            <span>首页</span>
            <span>个人中心</span>
        </div>
        <!-- 导航栏s -->
        <div class="nav2">
            <ul>
                <li class="fl"><a href="">我的游戏</a></li>
                <li class="fl"><a href="">我的收藏</a></li>
                <li class="fl"><a href="">试玩记录</a></li>
                <li class="fl"><a href="">游戏流程</a></li>
                <li class="fl"><a href="">表单设置</a></li>
            </ul>
        </div>
        <!-- 导航栏e -->
        <!-- 表单s -->
        <div class="banner">
            <ul class="photo">
                <li><div class="pt"><img src="images/wechat.png" alt=""><span>微信关注</span></div></li>
                <li><img src="images/sb.jpg" alt=""><span>玩游戏</span></li>
                <li><img src="images/hz.jpg" alt=""><span>抽奖</span></li>
                <li><img src="images/bd.jpg" alt=""><span>填表单</span></li>
            </ul>
        </div>
        <!-- 表单e -->
        <!-- 底部s -->
        <footer>
            <div class="footer1"><img src="images/footer1.png" alt=""></div>
            <div class="footer2"><img src="images/footer2.png" alt=""></div>
            <span>Copyright © 2014 Pangtang. All Rights Reserved. 版权所有</span>
        </footer>
        <!-- 底部e -->
    </div>
</body>

</html>